﻿using System.Collections.Generic;
using BoutiquePOS.DAL.DAO;
using BoutiquePOS.DAL.Gateway;

namespace BoutiquePOS.Manager
{
    public class SalesReturnDtlsManager
    {
        private SalesReturnDtlsGateway aSalesReturnDtlsGateway = new SalesReturnDtlsGateway();

        public string GetProductNameAutoCompleteData(int formId)
        {
            return aSalesReturnDtlsGateway.GetProductNameAutoCompleteData(formId);
        }

        public int SalesById(string salesNo)
        {
            return aSalesReturnDtlsGateway.ReturnSalesId(salesNo);
        }

        public int SalesReturnId(int salesReturnId)
        {
            return aSalesReturnDtlsGateway.SalesReturnId(salesReturnId);
        }

        public string SaveSalesReturn(SalesReturn asalesReturn)
        {
            aSalesReturnDtlsGateway.SaveSalesReturn(asalesReturn);
            return "Save success";
        }
        public string SaveSalesReturnDtls(int Id, List<SalesReturnDtls> salesReturnDtls)
        {
            aSalesReturnDtlsGateway.SaveSalesReturnDtls(Id, salesReturnDtls);
            return "Save success1";
        }

    }
}